require('./libs/platform/Extensions');
var utils = require('./libs/PlatformUtility')
var Storage = require('./libs/storage/RedisDataAccess')
var ObjectModel = require('./libs/ObjectModel')
var Catalog = require('./sample/Catalog')
utils.trace('Starting...');
utils.trace('Criando Produto...');
var prod = new Catalog.Product();
var engine = new ObjectModel.DocumentEngine(new Storage.RedisStorage());
debugger;

Catalog.registerSchemas(engine);
engine.save(new Catalog.Product());
var a = [
    2, 
    3, 
    5
];
utils.trace(a.firstOrDefault());

